package com.sumainfor.wx.tenant.controller.housekeeper;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.Zfeign.ZpcEpcFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.Map;

@RestController
@RequestMapping("/housekeeper/HoHousingPlan")
public class HoWxHousingPlanController implements Serializable{

    @Autowired
    private ZpcEpcFeign zpcEpcFeign;
    /**
     *租客端 充值智能设备查询智能电表的设备编号
     */
    @GetMapping("/getHoRdInteDeviceConList")
    public JsonResult getHoRdInteDeviceConList(@RequestParam Map<String, Object> params) {
        JsonResult result=new JsonResult();
        if (params.get("HouConId")==null){
            return result.putFailed("服务器繁忙");
        }
        return zpcEpcFeign.getHoRdInteDeviceConList(params);
    }

}
